package com.yuan.yblog.portal.dao.mapper;

import com.yuan.yblog.crud.entity.UserMessage;
import com.yuan.yblog.portal.pojo.VO.UserMessageVO;

import java.util.List;

/**
 * (UserMessage)表数据库访问层
 *
 * @author makejava
 * @since 2023-12-03 14:21:18
 */
public interface UserMessageDao {

    List<UserMessageVO> listMessageByReceiverId(Long receiverId, Long pageNum, Long pageSize, String sort);


    List<UserMessage> listByReceiverId(Long receiverId, Boolean isRead, long offset, Long pageSize, String sortKey, Boolean isDesc);

    Long listByReceiverIdCount(Long receiverId, Boolean isRead);

}

